package day06_exception_collection.com.itheima.d6_set;

import java.util.HashSet;
import java.util.LinkedHashSet;

public class Demo4_Set {
    public static void main(String[] args) {
//        HashSet<String> set = new HashSet<>();
        LinkedHashSet<String> set = new LinkedHashSet<>();
        set.add("java1");
        set.add("java1");
        set.add("java2");
        set.add("java3");
        set.add("java4");
        set.add("java5");
        System.out.println("set = " + set);
    }
}
